home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc / Sample Code / PartMaker 4.4 / PartMaker Documents / Script Runner• / Script Runner•.rsrc / dFRK_5012 < prev    next >
Encoding:
Text File  |  1995-12-12  |  1.5 KB  |  70 lines

  1. /*
  2.     File:        TextTransferExt.idl
  3.  
  4.     Contains:    Text Transfer Extension interface
  5.  
  6.     Written by:    Andrey Dolgachev
  7.  
  8.     Copyright:    © 1995 by Apple Computer, Inc., all rights reserved.
  9. */
  10.  
  11. #ifndef _TEXTTRANSFEREXT_
  12. #define _TEXTTRANSFEREXT_
  13.  
  14. #ifndef _DATATRANSFEREXT_
  15. #include <DataTransferExt.idl>
  16. #endif
  17.  
  18. #ifndef _DATATRANSFERVERS_
  19. #include "DataTransferVers.h"
  20. #endif
  21.  
  22.  
  23. //==============================================================================
  24. // Classes used by this interface
  25. //==============================================================================
  26.  
  27. interface ODPart;
  28.  
  29. //==============================================================================
  30. #pragma somemittypes on
  31.  
  32. const ODISOStr kTextTransferExtension = "Apple Computer:Extension:TextTransfer";
  33.  
  34. //==============================================================================
  35. // DataTransferExt
  36. //==============================================================================
  37.  
  38. interface TextTransferExt : SampleCode::DataTransferExt
  39. {
  40.         void         InitTextTransferExt(in ODPart owner);
  41.         ODBoolean     GetSelection(out ODULong start, out ODULong end);
  42.         ODBoolean     SetSelection(in ODULong start, in ODULong end);
  43.  
  44. #ifdef __SOMIDL__
  45.     implementation
  46.     {
  47.         majorversion = somClassMajorVersion;
  48.         minorversion = somClassMinorVersion;
  49.  
  50.         functionprefix = TextTransferExt__;
  51.  
  52.         override:
  53.             Release,
  54.             GetData,
  55.             SetData;
  56.             
  57.         releaseorder:
  58.             InitTextTransferExt,
  59.             GetSelection,
  60.             SetSelection;
  61.     };
  62.         
  63. #endif __SOMIDL__
  64.  
  65. };
  66.  
  67. #pragma somemittypes off
  68.  
  69. #endif
  70.